.class Lcom/estrongs/android/taskmanager/hm;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/estrongs/android/taskmanager/fr;


# instance fields
.field final synthetic a:Lcom/estrongs/android/taskmanager/TaskManager;

.field private b:I

.field private final synthetic c:[Landroid/view/View;

.field private final synthetic d:[Landroid/view/View;


# direct methods
.method constructor <init>(Lcom/estrongs/android/taskmanager/TaskManager;[Landroid/view/View;[Landroid/view/View;)V
    .locals 1

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/hm;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    iput-object p2, p0, Lcom/estrongs/android/taskmanager/hm;->c:[Landroid/view/View;

    iput-object p3, p0, Lcom/estrongs/android/taskmanager/hm;->d:[Landroid/view/View;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, -0x1

    iput v0, p0, Lcom/estrongs/android/taskmanager/hm;->b:I

    return-void
.end method


# virtual methods
.method public a(I)V
    .locals 5

    const/16 v4, 0x8

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hm;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->n(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/widget/GridView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/GridView;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hm;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->n(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/widget/GridView;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/GridView;->setVisibility(I)V

    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hm;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->j(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/RealViewSwitcher;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/RealViewSwitcher;->b()I

    move-result v2

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hm;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    iget-object v3, p0, Lcom/estrongs/android/taskmanager/hm;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v3}, Lcom/estrongs/android/taskmanager/TaskManager;->j(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/RealViewSwitcher;

    move-result-object v3

    invoke-virtual {v3, v2}, Lcom/estrongs/android/taskmanager/RealViewSwitcher;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Lcom/estrongs/android/taskmanager/TaskManager;->a(ILandroid/view/View;)V

    move v0, v1

    :goto_0
    iget-object v3, p0, Lcom/estrongs/android/taskmanager/hm;->c:[Landroid/view/View;

    array-length v3, v3

    if-lt v0, v3, :cond_1

    move v0, v1

    :goto_1
    iget-object v3, p0, Lcom/estrongs/android/taskmanager/hm;->d:[Landroid/view/View;

    array-length v3, v3

    if-lt v0, v3, :cond_3

    return-void

    :cond_1
    if-ne v0, v2, :cond_2

    iget-object v3, p0, Lcom/estrongs/android/taskmanager/hm;->c:[Landroid/view/View;

    aget-object v3, v3, v0

    invoke-virtual {v3, v1}, Landroid/view/View;->setVisibility(I)V

    :goto_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_2
    iget-object v3, p0, Lcom/estrongs/android/taskmanager/hm;->c:[Landroid/view/View;

    aget-object v3, v3, v0

    invoke-virtual {v3, v4}, Landroid/view/View;->setVisibility(I)V

    goto :goto_2

    :cond_3
    if-eq v0, v2, :cond_4

    iget-object v3, p0, Lcom/estrongs/android/taskmanager/hm;->d:[Landroid/view/View;

    aget-object v3, v3, v0

    invoke-virtual {v3, v1}, Landroid/view/View;->setVisibility(I)V

    :goto_3
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_4
    iget-object v3, p0, Lcom/estrongs/android/taskmanager/hm;->d:[Landroid/view/View;

    aget-object v3, v3, v0

    invoke-virtual {v3, v4}, Landroid/view/View;->setVisibility(I)V

    goto :goto_3
.end method

.method public b(I)V
    .locals 4

    const/16 v3, 0x8

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hm;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->n(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/widget/GridView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/GridView;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hm;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->n(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/widget/GridView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/GridView;->setVisibility(I)V

    :cond_0
    iget v0, p0, Lcom/estrongs/android/taskmanager/hm;->b:I

    if-ne v0, p1, :cond_2

    :cond_1
    return-void

    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hm;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/hm;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v2}, Lcom/estrongs/android/taskmanager/TaskManager;->j(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/RealViewSwitcher;

    move-result-object v2

    invoke-virtual {v2, p1}, Lcom/estrongs/android/taskmanager/RealViewSwitcher;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v0, p1, v2}, Lcom/estrongs/android/taskmanager/TaskManager;->a(ILandroid/view/View;)V

    iput p1, p0, Lcom/estrongs/android/taskmanager/hm;->b:I

    move v0, v1

    :goto_0
    iget-object v2, p0, Lcom/estrongs/android/taskmanager/hm;->c:[Landroid/view/View;

    array-length v2, v2

    if-lt v0, v2, :cond_3

    move v0, v1

    :goto_1
    iget-object v2, p0, Lcom/estrongs/android/taskmanager/hm;->d:[Landroid/view/View;

    array-length v2, v2

    if-ge v0, v2, :cond_1

    if-eq v0, p1, :cond_5

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/hm;->d:[Landroid/view/View;

    aget-object v2, v2, v0

    invoke-virtual {v2, v1}, Landroid/view/View;->setVisibility(I)V

    :goto_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_3
    if-ne v0, p1, :cond_4

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/hm;->c:[Landroid/view/View;

    aget-object v2, v2, v0

    invoke-virtual {v2, v1}, Landroid/view/View;->setVisibility(I)V

    :goto_3
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_4
    iget-object v2, p0, Lcom/estrongs/android/taskmanager/hm;->c:[Landroid/view/View;

    aget-object v2, v2, v0

    invoke-virtual {v2, v3}, Landroid/view/View;->setVisibility(I)V

    goto :goto_3

    :cond_5
    iget-object v2, p0, Lcom/estrongs/android/taskmanager/hm;->d:[Landroid/view/View;

    aget-object v2, v2, v0

    invoke-virtual {v2, v3}, Landroid/view/View;->setVisibility(I)V

    goto :goto_2
.end method
